<script setup></script>

<template>
  <div class="o-page-title">
    <div class="wrapper">
      <slot></slot>
      <slot name="action"></slot>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.o-page-title {
  width: 100%;
  background: no-repeat top center/cover;
  height: 164px;

  :deep(.title) {
    font-size: 36px;
    color: var(--theme-white);
    font-weight: normal;
  }
  :deep(.white) {
    color: var(--theme-white);
    border-color: var(--theme-white);
    font-size: 16px;
    .o-icon {
      margin-left: 8px;
      font-size: 20px;
      color: var(--theme-active-hover);
    }
  }
  .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
}
@media (max-width: 1100px) {
  .o-page-title {
    height: 96px;
    :deep(.title) {
      font-size: 20px;
    }
    .wrapper {
      display: flex;
      justify-content: space-between;
      padding: 0 16px;
      height: 100%;
      align-items: center;
    }
    :deep(.white) {
      color: var(--theme-white);
      border-color: var(--theme-white);
      font-size: 14px;
      .o-icon {
        margin-left: 4px;

        font-size: 16px;
      }
    }
  }
}
</style>
